package com.yc.favorite.mapper;

import com.yc.favorite.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2023-10-29
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where name=#{name} and pwd=#{pwd}")
    User selectForLogin(@Param("name")String name, @Param("pwd")String pwd);

}
